#ifndef WIDGETTCPCFG_H
#define WIDGETTCPCFG_H
#include "basecommunication.h"
#include <QWidget>
#include <QJsonObject>

namespace Ui {
class WidgetTcpCfg;
}

class WidgetTcpCfg : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetTcpCfg(QWidget *parent = 0);
    ~WidgetTcpCfg();

    void setComm(BaseCommunication *comm);


private slots:

    void on_btnOpen_clicked();

    void on_btnClose_clicked();

private:
    Ui::WidgetTcpCfg *ui;
    BaseCommunication *_comm;
};

#endif // WIDGETTCPCFG_H